package Snackbarsystem;
import java.util.Scanner;
public class loginFood extends managerFood {
    public static void main(String[] args) throws Exception {
        System.out.println("请输入您的身份：");
        for (int i = 0; i < 3; i++) {
            System.out.println();
        }
        System.out.println("1.管理员       2.用户");
        Scanner x = new Scanner(System.in);
        while(true) {
            String identity = x.next();
            if (identity.equals("1")) {
                allAccount a = new allAccount();
                a.managerAccount();
                break;
            } else if (identity.equals("2")) {
                allAccount b = new allAccount();
                b.userAcconut();
                break;
            } else {
                System.out.println("无此功能,请重新输入！");
            }
        }
    }
}
